package com.ht.temp.mapper;

import com.ht.temp.entity.AlertReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-26
 */
@Mapper
public interface AlertReportMapper extends BaseMapper<AlertReport> {
   //查询报警记录
     List<AlertReport> selectByAlertReport(AlertReport report,@Param("pageBegin") Integer pageBegin);

     //查询总页数
     Integer selectCount(AlertReport report);

    //查询某日报警信息
    List<AlertReport> selectAlertByDay(@Param("start") String startTime,@Param("end") String endTime,@Param("deviceId") Integer deviceId);
}
